#ifndef QWIDGETHOST_H
#define QWIDGETHOST_H

#include "qabstracthost.h"

namespace SHAREDLIB
{

    class SHAREDLIB_EXPORT QWidgetHost : public QAbstractHost
    {
        Q_OBJECT
    public:
        QWidgetHost(QObject *object);


        void    appendMemery(const QString &property);

    protected slots:
        virtual void    edit_slots();
    protected:
         void initProperty();
    public slots:
         void   setGeometry(int x,int y,int width,int height);
         int    x();
         int    y();
         int    width();
         int    height();

         void   setVisible(bool visible);
         bool   visible();

         void   setEnabled(bool enabled);
         bool   enabled();

         void   setToolTip(const QString &tooltip);
         QString toolTip();

         void   setCursor(int cursor);
         int    cursor();
    protected:
         bool   handleEvent(QEvent *e);
         void   mouseMoveEvent(QMouseEvent *e);
         void   pressEvent(QMouseEvent *e);
         void   releaseEvent(QMouseEvent *e);
         void   doubleClickEvent(QMouseEvent *e);
    protected:
    };
}

#endif // QWIDGETHOST_H
